<?php
$connect = new MongoClient();
$db = $connect->selectDB('test');
$collection = $db->selectCollection('users');
//插入一些其他数据
for ( $i = 0; $i < 100; $i++ )
{
    $collection->insert( array( 'i' => $i, "field{$i}" => $i * 2 ) );
}